package com.gitee.magic.jdbc.persistence.source.jdbc.sqlplus.enums;


import com.gitee.magic.jdbc.persistence.source.jdbc.sqlplus.conditions.ISqlSegment;

/**
 * <p>
 * SQL 保留关键字枚举
 * </p>
 *
 * @author Start
 */
public enum SqlKeyword implements ISqlSegment {
    /**
     *
     */
    AND("AND"),
    /**
     *
     */
    OR("OR"),
    /**
     *
     */
    IN("IN"),
    /**
     *
     */
    NOT("NOT"),
    /**
     *
     */
    LIKE("LIKE"),
    /**
     *
     */
    EQ("="),
    /**
     *
     */
    NE("<>"),
    /**
     *
     */
    GT(">"),
    /**
     *
     */
    GE(">="),
    /**
     *
     */
    LT("<"),
    /**
     *
     */
    LE("<="),
    /**
     *
     */
    IS_NULL("IS NULL"),
    /**
     *
     */
    IS_NOT_NULL("IS NOT NULL"),
    /**
     *
     */
    GROUP_BY("GROUP BY"),
    /**
     *
     */
    HAVING("HAVING"),
    /**
     *
     */
    ORDER_BY("ORDER BY"),
    /**
     *
     */
    EXISTS("EXISTS"),
    /**
     *
     */
    BETWEEN("BETWEEN"),
    /**
     *
     */
    ASC("ASC"),
    /**
     *
     */
    DESC("DESC");

    private final String keyword;

    SqlKeyword(final String keyword) {
        this.keyword = keyword;
    }

    @Override
    public String getSqlSegment() {
        return this.keyword;
    }
}
